/*
 * Project Name spring-boot-tools
 * File Name JobDetails
 * Package Name com.huxiaosu.tools.quartz.entity
 * Create Time 2024/7/29
 * Create by name：liujie
 */
package com.huxiaosu.tools.quartz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huxiaosu.tools.autocreate.annotation.ColumnExtend;
import com.huxiaosu.tools.autocreate.annotation.TableExtend;
import com.huxiaosu.tools.mybatis.base.entity.BaseEntity;
import lombok.Data;

import java.sql.JDBCType;

/**
 * Description
 *
 * @author liujie
 * @date 2024/7/29 13:13
 */
@Data
@TableExtend(comment = "任务记录表")
@TableName(value = "job_details")
public class JobDetails extends BaseEntity {
    /**
     * 任务名称
     */
    @ColumnExtend(length = 200, comment = "任务名称")
    @TableField(value = "job_name")
    private String jobName;
    /**
     * 任务详情
     */
    @ColumnExtend( comment = "任务名称",type = JDBCType.LONGVARCHAR)
    @TableField(value = "job_details")
    private String jobDetails;

    /**
     * 任务执行表达式
     */
    @ColumnExtend( comment = "任务执行表达式",length = 500)
    @TableField(value = "job_corn")
    private String jobCorn;
    /**
     * 任务到点执行的操作
     */
    @ColumnExtend( comment = "任务到点执行的操作",length = 2000)
    @TableField(value = "callback_url")
    private String callBackUrl;
    /**
     * 任务状态
     */
    @ColumnExtend( comment = "任务状态",type = JDBCType.INTEGER,length = 11)
    @TableField(value = "job_status")
    private Integer jobStatus= 0;
}